Skip to content

Add Nix Flake - #945

Merged
vedderb merged 3 commits into
vedderb:masterfrom
MilesBreslin:mbreslin/nix_init
Aug 23, 2026
Merged

Add Nix Flake#945
vedderb merged 3 commits into
vedderb:masterfrom
MilesBreslin:mbreslin/nix_init

Conversation

@MilesBreslin

@MilesBreslin MilesBreslin commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Add a nix flake to help make building easier and more consistent.

Test this locally with nix build github:MilesBreslin/bldc/mbreslin/nix_init#bldc-fw. This has been tested on x86_64-linux and aarch64-darwin.

While this is a port from vesc_tool, it builds on top of vedderb/vesc_tool#464. A follow-up to this PR will be a change in vesc_tool, which fully shifts the bldc nix definition into this repository.

An optional follow-up, if there is interest, would be a github workflow to add build testing for PRs.

flake.nix: Init

Adds a nix flake for building bldc firmware. This has been ported from
the vesc_tool nix package for bldc.

package_firmware.py: Remove git SHA logic

This git_hash variable is unused. Remove it. This removes a dependency
on git, allowing removal of a hack in bldc.nix.

README: add Nix quick start

Document the default flake build and point new users to the packaged
firmware output.

Adds a nix flake for building bldc firmware. This has been ported from
the vesc_tool nix package for bldc.
This git_hash variable is unused. Remove it. This removes a dependency
on git, allowing removal of a hack in bldc.nix.
Document the default flake build and point new users to the packaged
firmware output.
@vedderb
vedderb merged commit 5c98a00 into vedderb:master Aug 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants